package com.apress.prospringintegration;

import org.springframework.integration.annotation.ServiceActivator;
import org.springframework.stereotype.Component;

/**
 * Created by IntelliJ IDEA.
 * User: wenwei
 * Date: 4/15/11
 * Time: 4:20 PM
 * To change this template use File | Settings | File Templates.
 */

@Component
public class MessageHandler {
    @ServiceActivator
    public String handleMessage(String message) {
        System.out.println("Received message: " + message);
        return "MESSAGE:" + message;
    }
}
